package server

func nodeLoginCommand(c *requestContext) error {
  // TODO
  return nil
}

func nodeSayCommand(c *requestContext) error {
  // TODO
  return nil
}

func nodeCommand(c *requestContext) error {
  args := c.args
  if len(args) != 4 {
    return ErrCmdParams
  }

  subcmd := string(args[0])
  switch subcmd {
  case "login":
    return nodeLoginCommand(c)
  case "say":
    return nodeSayCommand(c)
  }

  return ErrCmdParams
}

func init() {
  register("node", nodeCommand)
}
